<?php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo _C_JOIEDITOR_IM_TITLE;?></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $script_dir?>/css/images.css" />
<script type="text/javascript">
	var _live_site = '<?php echo JPATH_SITE;?>';
	var _option = '<?php echo mosGetParam( $_REQUEST, 'option', '' );?>';
	var _script_path = '<?php echo $script_dir;?>';
	var _a_path = '<?php echo $mainframe->getCfg('absolute_path');?>';
</script>
<script type="text/javascript" src="<?php echo JPATH_SITE?>/components/com_joieditor/core/tiny_mce_popup.js"></script>
<script type="text/javascript" src="<?php echo JPATH_SITE?>/includes/js/jquery/jquery.js"></script>
<script type="text/javascript" src="<?php echo $script_dir?>/js/jquery-colors.js"></script>
<script type="text/javascript" src="<?php echo JPATH_SITE?>/includes/js/jquery/plugins/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo $script_dir?>/js/jquery.MultiFile.js"></script>
<script type="text/javascript" src="<?php echo $script_dir?>/js/images.js"></script>
	</head>
	<body>
		<div id="upload">
			<div id="shadowBack">
			</div>
			<div id="uploadWindow">
				<div id="uploadWindow1">
					<div id="uploadClose">
					</div>
					<div id="uploadMenu">
						<a href="#" class="act" id="uploadAreaNormalControl"><?php echo _C_JOIEDITOR_IM_DOWNLOAD_IMG;?></a>
					</div>
					<!-- Нормальная загрузка -->
					<div id="uploadAreaNormal">
						<form action="<?php echo $action;?>" enctype="multipart/form-data" method="post" id="filesForm">
							<fieldset>
								<input type="hidden" name="action" value="uploadfile" />
								<input type="hidden" name="path" id="normalPathVal" value="" />
								<input type="hidden" name="pathtype" id="normalPathtypeVal" value="" />
								<div>
									<?php echo _C_JOIEDITOR_IM_SELECT_FILE;?>:
								</div>
								<div id="filesHolder">
									<input type="file" id="fileOpen" class="fileOpen" />
								</div>
								<div id="fileNormalSubmit">
									<img src="<?php echo $script_dir?>/img/ajax-loader-files.gif" width="43" height="11" alt="<?php echo _C_JOIEDITOR_IM_DOWNLOAD;?>" id="normalLoader" />
									<span id="normalResult">
										<?php echo _C_JOIEDITOR_IM_IMAGE_DOWNLOADED;?>
									</span>
									<input type="submit" id="normalSubmit" value="<?php echo _C_JOIEDITOR_IM_DOWNLOAD;?>" />
								</div>
							</fieldset>
						</form>
					</div>
					<div id="uploadTarget"></div>
				</div>
			</div>
		</div>
		<div id="insertImage" title="<?php echo _C_JOIEDITOR_IM_INSERT_IMAGE;?>">
			<img src="<?php echo $script_dir?>/img/icon.gif" width="20" height="20" alt="<?php echo _C_JOIEDITOR_IM_INSERT_IMAGE;?>" />
		</div>
		<div id="addrBar">
			<div class="addrBar1">
				<div class="addrBar2" id="addr"></div>
			</div>
		</div>
		<div style="clear:both;">
		</div>
		<div id="toolBar">
			<div class="toolBar1">
				<div class="toolBar2">
					<?php if (IM_CREATE_DIR == '1'): ?>
					<div class="toolItem" id="menuCreateFolder">
						<img src="<?php echo $script_dir?>/img/folder_plus.png" width="16" height="16" alt="<?php echo _C_JOIEDITOR_IM_CREATE_FOLDER;?>" />
						<span><?php echo _C_JOIEDITOR_IM_CREATE_FOLDER;?></span>
					</div>
					<div class="toolItem" id="menuCancelFolder">
						<img src="<?php echo $script_dir?>/img/cross_circle_frame.png" width="16" height="16" alt="<?php echo _C_JOIEDITOR_IM_CANCEL_FOLDER;?>" />
						<span><?php echo _C_JOIEDITOR_IM_CANCEL;?></span>
					</div>
					<div class="toolItem" id="menuSaveFolder">
						<img src="<?php echo $script_dir?>/img/tick_circle_frame.png" width="16" height="16" alt="<?php echo  _C_JOIEDITOR_IM_SAVE_FOLDER;?>" />
						<span><?php echo _C_JOIEDITOR_IM_CREATE;?></span>
					</div>
					<?php endif;?>
					<?php if (IM_DEL_DIR == '1'): ?>
					<div class="toolItem" id="menuDelFolder">
						<img src="<?php echo $script_dir?>/img/folder_minus.png" width="16" height="16" alt="<?php echo  _C_JOIEDITOR_IM_DEL_FOLDER;?>" />
						<span><?php echo  _C_JOIEDITOR_IM_DEL_FOLDER;?></span>
					</div>
					<?php endif;?>
					<?php if (IM_DOWNLOAD_IMG == '1'): ?>
					<div class="toolItem" id="menuUploadFiles">
						<img src="<?php echo $script_dir?>/img/images_plus.png" width="16" height="16" alt="<?php echo  _C_JOIEDITOR_IM_UPLOAD_IMG;?>" />
						<span><?php echo  _C_JOIEDITOR_IM_UPLOAD_IMG;?></span>
					</div>
					<?php endif;?>
					<?php if (IM_DEL_IMG == '1'): ?>
					<div class="toolItem" id="menuDelFiles">
						<img src="<?php echo $script_dir?>/img/images_minus.png" width="16" height="16" alt="<?php echo  _C_JOIEDITOR_IM_DEL_IMG;?>" />
						<span><?php echo  _C_JOIEDITOR_IM_DEL_IMG;?></span>
					</div>
					<?php endif;?>
					<div id="loader">
						<img src="<?php echo $script_dir?>/img/ajax-loader.gif" width="16" height="16" alt="<?php echo _C_JOIEDITOR_IM_LOAD;?>" />
					</div>
				</div>
			</div>
		</div>
		<div style="clear:both;">
		</div>
		<table id="mainField" cellpadding="0" cellspacing="0">
			<tr>
				<td valign="top" id="mainTree">
					<div id="mainTreeHolder">
						<div id="tree"></div>
					</div></td>
				<td valign="top" id="mainFiles">
					<div id="files">
						<div style="clear:both;"></div>
					</div>
				</td>
			</tr>
		</table>
		<div id="foot">
			<table cellpadding="0" cellspacing="0" id="footTable">
				<tr>
					<td width="35%">
						<table id="footTableName">
							<tr>
								<td id="fileName">Дарк</td>      <td>
									<?php if (IM_RENAME_IMG == '1'): ?>
									<img src="<?php echo $script_dir?>/img/pencil_small.png" width="16" height="16" alt="<?php echo  _C_JOIEDITOR_IM_EDIT;?>" id="fileNameEdit" />
									<img src="<?php echo $script_dir?>/img/tick_small.png" width="16" height="16" alt="<?php echo _C_JOIEDITOR_IM_SAVE;?>" id="fileNameSave" />
									<?php endif;?> 	  </td>
							</tr>
						</table>   </td>
					<td width="20%" class="footLabel" id="footDateLabel">
						<?php echo _C_JOIEDITOR_IM_CREATED;?></td>
					<td width="20%" id="footDate">28.11.2008 10:11</td>
					<td class="footLabel" id="footDimLabel">
						<?php echo _C_JOIEDITOR_IM_SIZES;?>:</td>
					<td id="footDim">1600x1200</td>
				</tr>
				<tr>
					<td id="footExt">
						<?php echo _C_JOIEDITOR_IM_COUNT;?>:</td>
					<td class="footLabel" id="footLinkLabel">
						<?php echo _C_JOIEDITOR_IM_LINK;?>:</td>
					<td id="footLink">
						<img src="<?php echo $script_dir?>/img/chain.png" width="16" height="16" alt="Ссылка" style="vertical-align:sub" /> 
						<a href="#" target="_blank">IMG_0954</a>   </td>
					<td class="footLabel">
						<?php echo _C_JOIEDITOR_IM_SIZE;?>:</td>
					<td id="footSize">0</td>
				</tr>
			</table>
		</div>
	</body>
</html>